SftTabs/NET 6.0

OnCreateControl Method, SftTabs Class

Softel vdm, Inc.

Raises the CreateControl event.

Syntax      SftTabs Class (Softelvdm.SftTabsNET)

VB   

Protected Overrides Sub OnCreateControl()

C#   

protected override void OnCreateControl();

C++   

protected: virtual void OnCreateControl();

Comments

The OnCreateControl method raises the CreateControl event.

The OnCreateControl method is called when the control is first created.

Raising an event invokes the event handler through a delegate.

The OnCreateControl method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnCreateControl in a derived class, make sure to call the base class's OnCreateControl method so that registered delegates receive the event.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com